package com.project.bean;

import java.time.LocalDate;

/**
 * 班级实体类
 */
public class ClassBean {
    /**
     * 班级编号
     */
    private Integer classId;
    /**
     * 班级名
     */
    private String name;
    /**
     * 带班老师
     */
    private String teacher;
    /**
     * 开班时间
     */
    private LocalDate createDate;

    public ClassBean() {
    }

    public ClassBean(String name, String teacher, LocalDate createDate) {
        this.name = name;
        this.teacher = teacher;
        this.createDate = createDate;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "classId=" + classId +
                ", name='" + name + '\'' +
                ", teacher='" + teacher + '\'' +
                ", createDate=" + createDate +
                "}\n";
    }
}
